package com.sinotrans.gateway.service;

import com.sinotrans.common.security.AuthEntity;
import com.sinotrans.gateway.entity.RSAPublicKey;

public interface JwtService {

	/**
	 * jwt RSA 公钥
	 * 
	 * @return
	 */
	public RSAPublicKey jwtPublicKey();

	/**
	 * access token 解码校验
	 * 
	 * @param accessToken
	 * @return
	 * @throws Exception
	 */
	public AuthEntity decodeVerifyAccesstoken(String accessToken) throws Exception;

	/**
	 * refresh token 解码校验
	 * 
	 * @param refreshToken
	 * @return
	 * @throws Exception
	 */
	public AuthEntity decodeVerifyRefreshToken(String refreshToken) throws Exception;

}
